


        var picSwpScd = new Swiper('main .scale .picSwp',{

        });
        

        $(document).ready(function(){
            $('main .hornor .item').click(function(){
                $('main .scale').addClass('active');
                var ind = $(this).index();
                picSwpScd.params.speed = 0;
                picSwpScd.slideTo(ind);
                //$('main .scale .swiper-slide .pic').eq(ind).append($('.sclIcon')[0]);
                setTimeout(function(){
                    picSwpScd.params.speed = 300;
                },10)
            })
            $('main .scale .picNav p').click(function(){
                var ind = $(this).index();
                picSwpScd.slideTo(ind);
                //$('main .scale .swiper-slide .pic').eq(ind).append($('.sclIcon')[0]);
            })
            $('main .scale .swiper-slide .pic').click(function(){
                if(window.innerWidth <= 1100) return false;
                $(this).addClass('sm');
            })

            $('main .scale .close').click(function(){
                $('main .scale').removeClass('active');
            })
            $('main .scale .btn').click(function(){
                if($(this)[0].className.indexOf('prev') >= 0){
                    picSwpScd.slidePrev();
                }else{
                    picSwpScd.slideNext();
                }
            })
            
            $('[hoverPic]').mousemove(function(even){
                if($('main .scale .swiper-slide .pic.sm').length) return false;
                var offset = $(this).parent()[0].getBoundingClientRect();
                var x = even.clientX - offset.left;
                var y = even.clientY - offset.top;
                $('main .scale .sclIcon')[0].style.cssText = "left: " + x + 'px;top: ' + y + 'px;';
            }).mouseout(function(){
                
            });
        })